package com.tanhua.dubbo.server.vo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
//@AllArgsConstructor
public class AnswerList implements Serializable {
    private static final long serialVersionUID = -3136732836884933556L;

    List<Answer> answers;

    @JsonCreator
    public AnswerList(@JsonProperty("answers") List<Answer> answers) {
        this.answers = answers;
    }
}
